home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 4 / Mac Giga-ROM 4.0 - 1993.toast / FILES / HYP / R-S / SeatingChart / background_2660.xml next >
Encoding:
Extensible Markup Language  |  1992-04-18  |  17.1 KB  |  511 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2660</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_2066.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3100.css" />
  11.     <part>
  12.         <id>10</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <true /> </sharedText>
  18.         <fixedLineHeight> <false /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>297</left>
  23.             <top>44</top>
  24.             <right>371</right>
  25.             <bottom>58</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Monaco</font>
  37.         <textSize>9</textSize>
  38.         <textStyle>condense</textStyle>
  39.         <textStyle>outline</textStyle>
  40.         <textHeight>12</textHeight>
  41.         <name>static2</name>
  42.         <script></script>
  43.     </part>
  44.     <part>
  45.         <id>12</id>
  46.         <type>field</type>
  47.         <visible> <true /> </visible>
  48.         <dontWrap> <false /> </dontWrap>
  49.         <dontSearch> <false /> </dontSearch>
  50.         <sharedText> <true /> </sharedText>
  51.         <fixedLineHeight> <false /> </fixedLineHeight>
  52.         <autoTab> <false /> </autoTab>
  53.         <lockText> <true /> </lockText>
  54.         <rect>
  55.             <left>297</left>
  56.             <top>30</top>
  57.             <right>339</right>
  58.             <bottom>45</bottom>
  59.         </rect>
  60.         <style>transparent</style>
  61.         <autoSelect> <false /> </autoSelect>
  62.         <showLines> <false /> </showLines>
  63.         <wideMargins> <false /> </wideMargins>
  64.         <multipleLines> <false /> </multipleLines>
  65.         <reservedFamily> 0 </reservedFamily>
  66.         <titleWidth>0</titleWidth>
  67.         <icon>0</icon>
  68.         <textAlign>left</textAlign>
  69.         <font>Monaco</font>
  70.         <textSize>9</textSize>
  71.         <textStyle>condense</textStyle>
  72.         <textStyle>outline</textStyle>
  73.         <textHeight>12</textHeight>
  74.         <name>static1</name>
  75.         <script></script>
  76.     </part>
  77.     <part>
  78.         <id>14</id>
  79.         <type>field</type>
  80.         <visible> <true /> </visible>
  81.         <dontWrap> <true /> </dontWrap>
  82.         <dontSearch> <false /> </dontSearch>
  83.         <sharedText> <false /> </sharedText>
  84.         <fixedLineHeight> <true /> </fixedLineHeight>
  85.         <autoTab> <false /> </autoTab>
  86.         <lockText> <false /> </lockText>
  87.         <rect>
  88.             <left>332</left>
  89.             <top>30</top>
  90.             <right>491</right>
  91.             <bottom>46</bottom>
  92.         </rect>
  93.         <style>transparent</style>
  94.         <autoSelect> <false /> </autoSelect>
  95.         <showLines> <false /> </showLines>
  96.         <wideMargins> <false /> </wideMargins>
  97.         <multipleLines> <false /> </multipleLines>
  98.         <reservedFamily> 0 </reservedFamily>
  99.         <titleWidth>0</titleWidth>
  100.         <icon>0</icon>
  101.         <textAlign>left</textAlign>
  102.         <font>Monaco</font>
  103.         <textSize>9</textSize>
  104.         <textStyle>condense</textStyle>
  105.         <textStyle>outline</textStyle>
  106.         <textHeight>12</textHeight>
  107.         <name>info2</name>
  108.         <script>on returnInField
  109. end returnInField
  110. </script>
  111.     </part>
  112.     <part>
  113.         <id>15</id>
  114.         <type>field</type>
  115.         <visible> <true /> </visible>
  116.         <dontWrap> <true /> </dontWrap>
  117.         <dontSearch> <false /> </dontSearch>
  118.         <sharedText> <false /> </sharedText>
  119.         <fixedLineHeight> <true /> </fixedLineHeight>
  120.         <autoTab> <false /> </autoTab>
  121.         <lockText> <false /> </lockText>
  122.         <rect>
  123.             <left>369</left>
  124.             <top>44</top>
  125.             <right>488</right>
  126.             <bottom>59</bottom>
  127.         </rect>
  128.         <style>transparent</style>
  129.         <autoSelect> <false /> </autoSelect>
  130.         <showLines> <false /> </showLines>
  131.         <wideMargins> <false /> </wideMargins>
  132.         <multipleLines> <false /> </multipleLines>
  133.         <reservedFamily> 0 </reservedFamily>
  134.         <titleWidth>0</titleWidth>
  135.         <icon>0</icon>
  136.         <textAlign>left</textAlign>
  137.         <font>Monaco</font>
  138.         <textSize>9</textSize>
  139.         <textStyle>condense</textStyle>
  140.         <textStyle>outline</textStyle>
  141.         <textHeight>12</textHeight>
  142.         <name>info3</name>
  143.         <script>on returnInField
  144. end returnInField
  145. </script>
  146.     </part>
  147.     <part>
  148.         <id>17</id>
  149.         <type>button</type>
  150.         <visible> <true /> </visible>
  151.         <reserved5> 0 </reserved5>
  152.         <reserved4> 0 </reserved4>
  153.         <reserved3> 0 </reserved3>
  154.         <reserved2> 0 </reserved2>
  155.         <reserved1> 0 </reserved1>
  156.         <enabled> <true /> </enabled>
  157.         <rect>
  158.             <left>220</left>
  159.             <top>312</top>
  160.             <right>244</right>
  161.             <bottom>335</bottom>
  162.         </rect>
  163.         <style>opaque</style>
  164.         <showName> <false /> </showName>
  165.         <highlight> <false /> </highlight>
  166.         <autoHighlight> <true /> </autoHighlight>
  167.         <sharedHighlight> <true /> </sharedHighlight>
  168.         <family>0</family>
  169.         <titleWidth>0</titleWidth>
  170.         <icon>20711</icon>
  171.         <textAlign>center</textAlign>
  172.         <font>Chicago</font>
  173.         <textSize>12</textSize>
  174.         <textStyle>plain</textStyle>
  175.         <name>prev</name>
  176.         <script>on mouseUp
  177. if number of cds of this bg > 1 then
  178. set cursor to watch
  179. visual scroll right fast
  180. go prev cd of this bg
  181. else
  182. answer "No other seating charts!" with "Cancel"
  183. end if
  184. end mouseUp</script>
  185.     </part>
  186.     <part>
  187.         <id>18</id>
  188.         <type>button</type>
  189.         <visible> <true /> </visible>
  190.         <reserved5> 0 </reserved5>
  191.         <reserved4> 0 </reserved4>
  192.         <reserved3> 0 </reserved3>
  193.         <reserved2> 0 </reserved2>
  194.         <reserved1> 0 </reserved1>
  195.         <enabled> <true /> </enabled>
  196.         <rect>
  197.             <left>244</left>
  198.             <top>311</top>
  199.             <right>270</right>
  200.             <bottom>334</bottom>
  201.         </rect>
  202.         <style>transparent</style>
  203.         <showName> <false /> </showName>
  204.         <highlight> <false /> </highlight>
  205.         <autoHighlight> <false /> </autoHighlight>
  206.         <sharedHighlight> <true /> </sharedHighlight>
  207.         <family>0</family>
  208.         <titleWidth>0</titleWidth>
  209.         <icon>20710</icon>
  210.         <textAlign>center</textAlign>
  211.         <font>Chicago</font>
  212.         <textSize>12</textSize>
  213.         <textStyle>plain</textStyle>
  214.         <name>home</name>
  215.         <script>on mouseUp
  216. set cursor to 4
  217. go home
  218. end mouseUp</script>
  219.     </part>
  220.     <part>
  221.         <id>19</id>
  222.         <type>button</type>
  223.         <visible> <true /> </visible>
  224.         <reserved5> 0 </reserved5>
  225.         <reserved4> 0 </reserved4>
  226.         <reserved3> 0 </reserved3>
  227.         <reserved2> 0 </reserved2>
  228.         <reserved1> 0 </reserved1>
  229.         <enabled> <true /> </enabled>
  230.         <rect>
  231.             <left>271</left>
  232.             <top>312</top>
  233.             <right>295</right>
  234.             <bottom>334</bottom>
  235.         </rect>
  236.         <style>opaque</style>
  237.         <showName> <false /> </showName>
  238.         <highlight> <false /> </highlight>
  239.         <autoHighlight> <true /> </autoHighlight>
  240.         <sharedHighlight> <true /> </sharedHighlight>
  241.         <family>0</family>
  242.         <titleWidth>0</titleWidth>
  243.         <icon>20712</icon>
  244.         <textAlign>center</textAlign>
  245.         <font>Chicago</font>
  246.         <textSize>12</textSize>
  247.         <textStyle>plain</textStyle>
  248.         <name>next</name>
  249.         <script>on mouseUp
  250. if number of cds of this bg > 1 then
  251. set cursor to watch
  252. visual scroll left fast
  253. go next cd of this bg
  254. else
  255. answer "No other seating charts!" with "Cancel"
  256. end if
  257. end mouseUp</script>
  258.     </part>
  259.     <part>
  260.         <id>21</id>
  261.         <type>field</type>
  262.         <visible> <false /> </visible>
  263.         <dontWrap> <false /> </dontWrap>
  264.         <dontSearch> <false /> </dontSearch>
  265.         <sharedText> <true /> </sharedText>
  266.         <fixedLineHeight> <false /> </fixedLineHeight>
  267.         <autoTab> <false /> </autoTab>
  268.         <lockText> <false /> </lockText>
  269.         <rect>
  270.             <left>320</left>
  271.             <top>104</top>
  272.             <right>419</right>
  273.             <bottom>324</bottom>
  274.         </rect>
  275.         <style>rectangle</style>
  276.         <autoSelect> <false /> </autoSelect>
  277.         <showLines> <false /> </showLines>
  278.         <wideMargins> <false /> </wideMargins>
  279.         <multipleLines> <false /> </multipleLines>
  280.         <reservedFamily> 0 </reservedFamily>
  281.         <titleWidth>0</titleWidth>
  282.         <icon>0</icon>
  283.         <textAlign>left</textAlign>
  284.         <font>Geneva</font>
  285.         <textSize>12</textSize>
  286.         <textStyle>plain</textStyle>
  287.         <textHeight>16</textHeight>
  288.         <name>gridLoc</name>
  289.         <script></script>
  290.     </part>
  291.     <part>
  292.         <id>25</id>
  293.         <type>field</type>
  294.         <visible> <false /> </visible>
  295.         <dontWrap> <false /> </dontWrap>
  296.         <dontSearch> <false /> </dontSearch>
  297.         <sharedText> <false /> </sharedText>
  298.         <fixedLineHeight> <false /> </fixedLineHeight>
  299.         <autoTab> <false /> </autoTab>
  300.         <lockText> <false /> </lockText>
  301.         <rect>
  302.             <left>474</left>
  303.             <top>0</top>
  304.             <right>512</right>
  305.             <bottom>65</bottom>
  306.         </rect>
  307.         <style>rectangle</style>
  308.         <autoSelect> <false /> </autoSelect>
  309.         <showLines> <false /> </showLines>
  310.         <wideMargins> <false /> </wideMargins>
  311.         <multipleLines> <false /> </multipleLines>
  312.         <reservedFamily> 0 </reservedFamily>
  313.         <titleWidth>0</titleWidth>
  314.         <icon>0</icon>
  315.         <textAlign>left</textAlign>
  316.         <font>Geneva</font>
  317.         <textSize>12</textSize>
  318.         <textStyle>plain</textStyle>
  319.         <textHeight>16</textHeight>
  320.         <name>data</name>
  321.         <script></script>
  322.     </part>
  323.     <part>
  324.         <id>26</id>
  325.         <type>field</type>
  326.         <visible> <false /> </visible>
  327.         <dontWrap> <false /> </dontWrap>
  328.         <dontSearch> <true /> </dontSearch>
  329.         <sharedText> <false /> </sharedText>
  330.         <fixedLineHeight> <true /> </fixedLineHeight>
  331.         <autoTab> <false /> </autoTab>
  332.         <lockText> <true /> </lockText>
  333.         <rect>
  334.             <left>6</left>
  335.             <top>78</top>
  336.             <right>505</right>
  337.             <bottom>310</bottom>
  338.         </rect>
  339.         <style>opaque</style>
  340.         <autoSelect> <false /> </autoSelect>
  341.         <showLines> <false /> </showLines>
  342.         <wideMargins> <false /> </wideMargins>
  343.         <multipleLines> <false /> </multipleLines>
  344.         <reservedFamily> 0 </reservedFamily>
  345.         <titleWidth>0</titleWidth>
  346.         <icon>0</icon>
  347.         <textAlign>left</textAlign>
  348.         <font>Geneva</font>
  349.         <textSize>12</textSize>
  350.         <textStyle>plain</textStyle>
  351.         <textHeight>16</textHeight>
  352.         <name>hidegrid</name>
  353.         <script></script>
  354.     </part>
  355.     <part>
  356.         <id>27</id>
  357.         <type>field</type>
  358.         <visible> <false /> </visible>
  359.         <dontWrap> <false /> </dontWrap>
  360.         <dontSearch> <false /> </dontSearch>
  361.         <sharedText> <true /> </sharedText>
  362.         <fixedLineHeight> <true /> </fixedLineHeight>
  363.         <autoTab> <false /> </autoTab>
  364.         <lockText> <true /> </lockText>
  365.         <rect>
  366.             <left>196</left>
  367.             <top>315</top>
  368.             <right>317</right>
  369.             <bottom>331</bottom>
  370.         </rect>
  371.         <style>shadow</style>
  372.         <autoSelect> <false /> </autoSelect>
  373.         <showLines> <false /> </showLines>
  374.         <wideMargins> <false /> </wideMargins>
  375.         <multipleLines> <false /> </multipleLines>
  376.         <reservedFamily> 0 </reservedFamily>
  377.         <titleWidth>0</titleWidth>
  378.         <icon>0</icon>
  379.         <textAlign>center</textAlign>
  380.         <font>Geneva</font>
  381.         <textSize>9</textSize>
  382.         <textStyle>bold</textStyle>
  383.         <textHeight>12</textHeight>
  384.         <name>Record Grades</name>
  385.         <script>on mouseUp
  386. global seatingGradeList
  387. set cursor to busy
  388. pop card
  389. repeat with sourceNum = 1 to number of lines of seatingGradeList
  390. put item 1 of line sourceNum of seatingGradeList into sourceName
  391. repeat with destNum = 1 to number of lines of bkgnd field "name"
  392. set cursor to busy
  393. put line destNum of bkgnd field "name" into destName
  394. if sourceName is destName then
  395. put item 2 of line sourceNum of seatingGradeList into line destNum of bkgnd field "score"
  396. put "0" into line destNum of bkgnd field "percent"
  397. put "Recalculate" into line destNum of bkgnd field "letter"
  398. put bkgnd field "name" into bkgnd field "scroll"
  399. end if
  400. end repeat
  401. end repeat
  402. end mouseUp</script>
  403.     </part>
  404.     <part>
  405.         <id>31</id>
  406.         <type>button</type>
  407.         <visible> <false /> </visible>
  408.         <reserved5> 0 </reserved5>
  409.         <reserved4> 0 </reserved4>
  410.         <reserved3> 0 </reserved3>
  411.         <reserved2> 0 </reserved2>
  412.         <reserved1> 0 </reserved1>
  413.         <enabled> <true /> </enabled>
  414.         <rect>
  415.             <left>235</left>
  416.             <top>18</top>
  417.             <right>267</right>
  418.             <bottom>50</bottom>
  419.         </rect>
  420.         <style>opaque</style>
  421.         <showName> <false /> </showName>
  422.         <highlight> <false /> </highlight>
  423.         <autoHighlight> <false /> </autoHighlight>
  424.         <sharedHighlight> <false /> </sharedHighlight>
  425.         <family>0</family>
  426.         <titleWidth>0</titleWidth>
  427.         <icon>5438</icon>
  428.         <textAlign>center</textAlign>
  429.         <font>Chicago</font>
  430.         <textSize>12</textSize>
  431.         <textStyle>plain</textStyle>
  432.         <name>seat1</name>
  433.         <script></script>
  434.     </part>
  435.     <part>
  436.         <id>34</id>
  437.         <type>button</type>
  438.         <visible> <false /> </visible>
  439.         <reserved5> 0 </reserved5>
  440.         <reserved4> 0 </reserved4>
  441.         <reserved3> 0 </reserved3>
  442.         <reserved2> 0 </reserved2>
  443.         <reserved1> 0 </reserved1>
  444.         <enabled> <true /> </enabled>
  445.         <rect>
  446.             <left>235</left>
  447.             <top>44</top>
  448.             <right>267</right>
  449.             <bottom>76</bottom>
  450.         </rect>
  451.         <style>opaque</style>
  452.         <showName> <false /> </showName>
  453.         <highlight> <false /> </highlight>
  454.         <autoHighlight> <false /> </autoHighlight>
  455.         <sharedHighlight> <false /> </sharedHighlight>
  456.         <family>0</family>
  457.         <titleWidth>0</titleWidth>
  458.         <icon>5437</icon>
  459.         <textAlign>center</textAlign>
  460.         <font>Chicago</font>
  461.         <textSize>12</textSize>
  462.         <textStyle>plain</textStyle>
  463.         <name>seat2</name>
  464.         <script></script>
  465.     </part>
  466.     <part>
  467.         <id>37</id>
  468.         <type>button</type>
  469.         <visible> <true /> </visible>
  470.         <reserved5> 0 </reserved5>
  471.         <reserved4> 0 </reserved4>
  472.         <reserved3> 0 </reserved3>
  473.         <reserved2> 0 </reserved2>
  474.         <reserved1> 0 </reserved1>
  475.         <enabled> <true /> </enabled>
  476.         <rect>
  477.             <left>224</left>
  478.             <top>19</top>
  479.             <right>288</right>
  480.             <bottom>75</bottom>
  481.         </rect>
  482.         <style>transparent</style>
  483.         <showName> <false /> </showName>
  484.         <highlight> <false /> </highlight>
  485.         <autoHighlight> <false /> </autoHighlight>
  486.         <sharedHighlight> <false /> </sharedHighlight>
  487.         <family>0</family>
  488.         <titleWidth>0</titleWidth>
  489.         <icon>0</icon>
  490.         <textAlign>center</textAlign>
  491.         <font>Chicago</font>
  492.         <textSize>12</textSize>
  493.         <textStyle>plain</textStyle>
  494.         <name></name>
  495.         <script>on mouseUp
  496. selectChart
  497. end mouseUp</script>
  498.     </part>
  499.     <part>
  500.         <id>38</id>
  501.         <type>button</type>
  502.         <visible> <true /> </visible>
  503.         <reserved5> 0 </reserved5>
  504.         <reserved4> 0 </reserved4>
  505.         <reserved3> 0 </reserved3>
  506.         <reserved2> 0 </reserved2>
  507.         <reserved1> 0 </reserved1>
  508.         <enabled> <true /> </enabled>
  509.         <rect>
  510.             <left>474</left>
  511.             <top>313</top>
  512.             <right>504</right>
  513.             <bottom>335</bottom>
  514.         </rect>
  515.         <style>transparent</style>
  516.         <showName> <false /> </showName>
  517.         <highlight> <false /> </highlight>
  518.         <autoHighlight> <true /> </autoHighlight>
  519.         <sharedHighlight> <true /> </sharedHighlight>
  520.         <family>0</family>
  521.         <titleWidth>0</titleWidth>
  522.         <icon>32584</icon>
  523.         <textAlign>center</textAlign>
  524.         <font>Chicago</font>
  525.         <textSize>12</textSize>
  526.         <textStyle>plain</textStyle>
  527.         <name></name>
  528.         <script>on mouseup
  529. help
  530. end mouseup
  531. </script>
  532.     </part>
  533.     <content>
  534.         <layer>background</layer>
  535.         <id>21</id>
  536.         <text>69,92
  537. 143,92
  538. 217,92
  539. 291,92
  540. 365,92
  541. 439,92
  542. 69,125
  543. 143,125
  544. 217,125
  545. 291,125
  546. 365,125
  547. 439,125
  548. 69,158
  549. 143,158
  550. 217,158
  551. 291,158
  552. 365,158
  553. 439,158
  554. 69,191
  555. 143,191
  556. 217,191
  557. 291,191
  558. 365,191
  559. 439,191
  560. 69,224
  561. 143,224
  562. 217,224
  563. 291,224
  564. 365,224
  565. 439,224
  566. 69,257
  567. 143,257
  568. 217,257
  569. 291,257
  570. 365,257
  571. 439,257
  572. 69,290
  573. 143,290
  574. 217,290
  575. 291,290
  576. 365,290
  577. 439,290</text>
  578.     </content>
  579.     <content>
  580.         <layer>background</layer>
  581.         <id>27</id>
  582.         <text>Return to Gradebook</text>
  583.     </content>
  584.     <content>
  585.         <layer>background</layer>
  586.         <id>12</id>
  587.         <text>Class</text>
  588.     </content>
  589.     <content>
  590.         <layer>background</layer>
  591.         <id>10</id>
  592.         <text>Description</text>
  593.     </content>
  594.     <name></name>
  595.     <script>on doMenu whichItem
  596. if whichItem is "Snap To Grid" then toggleSnap
  597. if whichItem is "New Seat..." then doNewSeat
  598. if whichItem is "Reassign Seat" then doReassignSeat
  599. if whichItem is "Empty Seat" then doEmptySeat
  600. if whichItem is "Delete Seat" then doDeleteSeat
  601. if whichItem is "Select Chart..." then selectChart
  602. if whichItem is "Create Chart From Gradebook..." then doAddFromList
  603. if whichItem is "Create Chart From Text File..." then doAddFromText
  604. if whichItem is "Show Grid" then toggleShowGrid
  605. if whichItem is "New Class..." then doNewClass
  606. if whichItem is "Delete Class..." then doDeleteClass
  607. if whichItem is "Print Chart" then doPrintChart
  608. if whichItem is not "Create Chart From Text File..." and ¬¨
  609. whichItem is not "Create Chart From Gradebook..." then pass doMenu
  610. end doMenu
  611.  
  612. on openBackground
  613. lock screen
  614. hide bg fld "Record Grades"
  615. show bg button "home"
  616. show bg button "prev"
  617. show bg button "next"
  618. unlock screen
  619. end openBackground
  620.  
  621. on toggleShowGrid
  622. if line 4 of bg fld "data" is empty then --hide grid
  623. doHideGrid
  624. put "off" into line 4 of bg fld "data"
  625. else --show grid
  626. doShowGrid
  627. put empty into line 4 of bg fld "data"
  628. end if
  629. end toggleShowGrid
  630.  
  631. on doHideGrid
  632. lock screen
  633. show bg fld "hidegrid"
  634. set checkMark of menuItem "Show Grid" of menu "Seats" to false
  635. put "off" into line 4 of bg fld "data"
  636. end doHideGrid
  637.  
  638. on doShowGrid
  639. lock screen
  640. hide bg fld "hidegrid"
  641. set checkMark of menuItem "Show Grid" of menu "Seats" to true
  642. put empty into line 4 of bg fld "data"
  643. end doShowGrid
  644.  
  645. on toggleSnap
  646. put line 1 of bg fld "data" into snapGrid
  647. if snapGrid is empty then
  648. set checkMark of menuItem "Snap To Grid" of menu "Seats" to true
  649. put "on" into line 1 of bg fld "data"
  650. else
  651. set checkMark of menuItem "Snap To Grid" of menu "Seats" to false
  652. put empty into line 1 of bg fld "data"
  653. end if
  654. end toggleSnap
  655.  
  656. on openCard
  657. if number of cds of this bg is 1 then --only one chart
  658. hide bg btn "prev"
  659. hide bg btn "next"
  660. else --more than one chart
  661. show bg btn "prev"
  662. show bg btn "next"
  663. end if
  664. end openCard
  665.  
  666. on selectChart
  667. put empty into theList
  668. repeat with num = 1 to number of cards of this bkgnd
  669. set cursor to busy
  670. put bg fld "info2" of cd num into theCard
  671. if bg fld "info2" is not theCard then
  672. put theCard into item (number of items of theList + 1) of theList
  673. end if
  674. end repeat
  675. if theList is not empty then
  676. lock screen
  677. DoList "1999",theList,"one+","Go to which Seating Chart?"
  678. get the result
  679. unlock screen
  680. if it is not empty then
  681. put item it of theList into theChart
  682. visual stretch from center very fast
  683. go card theChart of this bkgnd
  684. end if
  685. else
  686. answer "No other assignments for this class!" with "Cancel"
  687. end if
  688. end selectChart
  689. </script>
  690. </background>
  691.